package com.migration.model.olddb;

import jakarta.persistence.*;
import lombok.Data;
import java.io.Serializable;

/**
 * 部门权限表 实体类
 * 表名：sys_depart_permission
 * 自动生成的实体类
 */
@Data
@Entity
@Table(name = "sys_depart_permission")
public class SysDepartPermission implements Serializable {

    private static final long serialVersionUID = 1L;
    
    /**
     * 
     * 主键
     */
    @Id
    @Column(name = "id", nullable = false, length = 32)
    private String id;
    
    /**
     * 部门id
     */
    @Column(name = "depart_id", length = 32)
    private String departId;
    
    /**
     * 权限id
     */
    @Column(name = "permission_id", length = 32)
    private String permissionId;
    
    /**
     * 数据规则id
     */
    @Column(name = "data_rule_ids", length = 1000)
    private String dataRuleIds;
    
    @Override
    public String toString() {
        return "SysDepartPermission{" +
            "id=" + id +
            ", departId=" + departId +
            ", permissionId=" + permissionId +
            ", dataRuleIds=" + dataRuleIds +
        '}';
    }
} 